package com.bsoft.gol.hcs.satisfaction.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import com.bsoft.gol.hcs.satisfaction.entity.TeamSurveyRecord;

import java.util.List;

public abstract class TeamSurveyRecordDAO extends HibernateSupportDelegateDAO<TeamSurveyRecord> {
    public TeamSurveyRecordDAO() {
        this.setKeyField("teamSurveyRecordId");
    }

    @DAOMethod(sql = " select patientSurveyId from TeamSurveyRecord where medicalTeamId in (:medicalTeamIds) ")
    public abstract List<String> findSurveyIdsByMedicalTeamId(@DAOParam("medicalTeamIds") List<Long> medicalTeamIds);


}